package com.cq.hd.order.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 待成团订单信息
 *
 * @author Justin.Chen
 * @since 2024/09/17 16:10
 */
@Data
public class PendingGroupOrderVo implements Serializable {
    private static final long serialVersionUID = -6961397951581895251L;

    @ApiModelProperty(value = "拼团主单id")
    private Long groupBuyOrderId;

    @ApiModelProperty(value = "到期时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime expiredTime;

    @ApiModelProperty(value = "成团人数")
    private Integer groupNum;

    @ApiModelProperty(value = "当前人数")
    private Integer currentNum;

    @ApiModelProperty(value = "拼团成员")
    private List<GroupBuyMemberVo> members;

}
